<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/sys/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改巡查任务信息</title>
<%@ include file="/WEB-INF/sys/include/css.jsp"%>
</head>
<body>
<form id="form" action="${path }/inspection/task/update.json" method="post">
<div class="form">
	<div class="title">修改巡查任务信息</div>
	
	<div class="group">
		<div class="label">*任务名称:</div>
		<div class="item"><input type="text" name="inspecName" id="inspecName" maxlength="20" value="${task.inspecName }" /></div>
	</div>
	<div class="group">
		<div class="label">*任务编号:</div>
		<div class="item"><input type="text" name="inspecCode" id="inspecCode" maxlength="20" value="${task.inspecCode }"/></div>
	</div>
	<div class="group">
		<div class="label">备注:</div>
		<div class="item"><input type="text" name="remark" id="remark" maxlength="20" value="${task.remark }" /></div>
	</div>
	<div class="group">
		<div class="label">任务描述:</div>
		<div class="item"><textarea id="taskdesc" name="taskdesc">${task.taskdesc }</textarea></div>	
	</div>
	<div class="buttons">
		<button class="highlight" id="submit1" type="button">确定</button>
		<button type="button" id="cancel1">取消</button>
		<input type="hidden" id="taskId" name="taskId" value="${task.taskId }"
>
	</div>
</div>
</form>

<%@ include file="/WEB-INF/sys/include/script.jsp" %>
<script type="text/javascript">
$(function(){
	$("#form").ligerForm({inputWidth: 300});
	
	verifyForm("form", {}, function(){
		$("#form").ajaxForm(function(data){
			UiUtil.isSuccess(data, "修改巡查任务信息成功", function(){
				UiUtil.closeForm(true);
			});
		});
	});
	
	$("#submit1").click(function(){
		UiUtil.lockButton('submit1');
		$("#form").submit();
	});

	$("#cancel1").click(function(){
		UiUtil.closeForm();
	});
});
</script>
</body>
</html>